package com.sz.mes.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.sz.mes.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 工时 Entity定义
 * @author hem
 * @version 1.0
 * @date 2024-10-22
 * Copyright © szhs
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("work_hours")
public class WorkHours extends BaseCustomEntity {

    private static final long serialVersionUID = -2939699679410794824L;

    /**
     * 单据编号
     */
    @Length(max = 100, message = "单据编号长度应小于100")
    @TableField()
    private String receiptNum;

    /**
     * 计划号
     */
    @Length(max = 100, message = "计划号长度应小于100")
    @TableField()
    private String planNum;

    /**
     * 工序名称
     */
    @Length(max = 100, message = "工序名称长度应小于100")
    @TableField()
    private String techName;

    /**
     * 正常工时
     */
    @TableField()
    private BigDecimal normalTime;

    /**
     * 正常总工时
     */
    @TableField()
    private BigDecimal allNormalTime;

    /**
     * 工作时间
     */
    @TableField()
    private Date workDay;
}
